package net.qunzhi.modules.cms.service.impl;

import org.springframework.stereotype.Service;
import net.qunzhi.common.utils.BaseQuery;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import net.qunzhi.common.utils.PageUtils;
import net.qunzhi.common.utils.Query;

import net.qunzhi.modules.cms.dao.TbCumulativeFlowDao;
import net.qunzhi.modules.cms.entity.TbCumulativeFlowEntity;
import net.qunzhi.modules.cms.service.TbCumulativeFlowService;


@Service("tbCumulativeFlowService")
public class TbCumulativeFlowServiceImpl extends ServiceImpl<TbCumulativeFlowDao, TbCumulativeFlowEntity> implements TbCumulativeFlowService {

    @Override
    public PageUtils queryPage(BaseQuery query) {
        IPage<TbCumulativeFlowEntity> page = this.page(
                new Query<TbCumulativeFlowEntity>().getPage(query),
                new QueryWrapper<TbCumulativeFlowEntity>()
        );

        return new PageUtils(page);
    }

}